package com.example.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.model.User;
import com.example.demo.model.UserBook;
import com.example.demo.vo.PageVo;
//import org.springframework.security.core.userdetails.UserDetails;
//import org.springframework.security.core.userdetails.UserDetailsService;
//import org.springframework.security.core.userdetails.UsernameNotFoundException;

public interface AdminService  {
    // 原代码保持不变...
// 创建
    public boolean createRecord(UserBook record);
    // 更新
    public boolean updateRecord(UserBook record);
    // 删除
    public boolean deleteRecord(Long recordId);


    // 新增方法
    Page<UserBook> getAllBorrowRecords(int page, int size);
    //UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;
    PageVo<UserBook> page(Long recordId,String title, User borrower, int pageNumber, int pageSize);

    // 改进分页查询：添加查询条件

}
